<template>
	<view v-if="show" class="empty" :class="{'layout-bg' : bg == 1}">
    <image src="@/home/static/imgs/empty.png" mode="" class="img"></image>
    <view class="tip">{{title}}</view>
  </view>
</template>

<script>
export default {
	name: 'Layout',
	props: {
		//类型，到不同的页面
		title: {
			type: String,
			default: '抱歉，暂无搜索结果'
		},
    show:{
      type:Boolean,
      default:false
    }
	},

	data() {
		return {};
	},
	methods: {
		
	}
};
</script>

<style lang="scss" scoped>
.empty{
  text-align: center; padding: 50rpx 0 100rpx;
  .img{display: block; width: 128rpx; height: 128rpx; margin: 0 auto 30rpx;}
  .tip{color: #888; font-size: 26rpx;}
}
</style>
